package com.hptpd.questionnairesurvey.service;

import com.hptpd.questionnairesurvey.component.Result;
import com.hptpd.questionnairesurvey.domain.Department;
import com.hptpd.questionnairesurvey.service.base.IBaseService;

public interface IDepartmentService extends IBaseService {

    /**
     *列出机构下的所有用户
     *
     * @param parentDepartment {Department}
     * @return {Object}
     */
    Result listUserUnderDepartment(Department parentDepartment);

    /**
     * 列出机构下的所有机构，包括当前机构
     *
     * @param parentDepartment {Department}
     * @return {Object}
     */
    Result listDepartmentUnderParentDepartment(Department parentDepartment);
}
